package cn.matrix42.potoo.format.markdown.element.text.paragraph;

import java.util.ArrayList;
import java.util.List;

import cn.matrix42.potoo.format.markdown.element.MarkdownElement;

public class Toc extends MarkdownElement {

    @Override
    public List<String> toMarkdownStringList() {
        List<String> list = new ArrayList<>();
        list.add("[TOC]");
        list.add(context.getConfig().getEof());
        return list;
    }

    public static Toc of() {
        return new Toc();
    }
}
